home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / bash / bash-108 / bash-108.zoo / bash-1.08 / Makefile < prev    next >
Encoding:
Makefile  |  1991-08-22  |  1.8 KB  |  58 lines

  1. # Hey Emacs, this Makefile is in -*- text -*- mode!
  2. #
  3. # Makefile for Bash.
  4. # If your cpp doesn't like -P, just get rid of it (the -P, not cpp).
  5. # If you wish to use Gcc, then just type "make CC=gcc".
  6. # If you wish to use GNU's Make, then change the MAKE define.
  7. # If you don't like the destination, then change DESTDIR.  (This only
  8. # matters if you are typing `make install'.)
  9. # The file that you most likely want to look at is cpp-Makefile.
  10. #
  11. # If you haven't read README, now might be a good time.
  12.  
  13. DESTDIR = /usr/gnu/bin
  14. MAKE = make
  15. SHELL= /bin/sh
  16. # AWK = gawk
  17. AWK = awk
  18.  
  19. CPP = /lib/cpp `./cppmagic.sh` -P
  20. #CPP = $(CC) -E
  21.  
  22. CPPFLAGS = $(SYSTEM) $(CPP_DEFINES) -DM_DESTDIR=$(DESTDIR)
  23. CPP_ARGS = -DCPP_CC=$(CC)
  24.  
  25. # Here is a command which compresses runs of multiple blank lines to a
  26. # single blank line.  "cat -s" works for BSD systems, but not for USG
  27. # systems.  You can use an awk script if you like.  If you have too
  28. # much trouble with this, just forget it.  It is for making
  29. # bash-Makefile pretty and readable; something that isn't strictly
  30. # necessary.
  31. # SQUASH_BLANKS = cat -s
  32. #
  33. SQUASH_BLANKS = $(AWK) -f ./cat-s
  34.  
  35. all:    bash-Makefile
  36.     $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  37.  
  38. bash-Makefile: cpp-Makefile Makefile machines.h sysdefs.h config.h
  39.     cp cpp-Makefile tmp-Makefile.c
  40.     @/bin/sh -c 'echo $(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c \| $(SQUASH_BLANKS) \> bash-Makefile'
  41.     @/bin/sh -c '$(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c | $(SQUASH_BLANKS) >bash-Makefile'
  42.     rm -f tmp-Makefile.c
  43.  
  44. sysdefs.h: makeargs.sh
  45.     ./makeargs.sh
  46.  
  47. # Subsequent lines contain targets that are correctly handled by an
  48. # existing bash-Makefile.
  49.  
  50. install newversion mailable distribution architecture: bash-Makefile
  51.     $(MAKE) $(MAKEARGS) -f bash-Makefile $@
  52.  
  53. bash.tar.Z tags documentation clone clean: bash-Makefile directory-frob
  54.     $(MAKE) $(MAKEARGS) -f bash-Makefile $@
  55.  
  56. directory-frob:
  57.  
  58.